/**
 * @description updateUserInfo validate
 * @author 盘挂他爹
 */

const updateUserInfoRules = {
  oldPassword: [
    {
      required: true,
      message: "请输入您的原密码",
      trigger: "blur"
    },
    {
      min: 6,
      max: 25,
      message: "原密码应该在6到25位",
      trigger: "blur"
    }
  ],

  newPassword: [
    {
      required: true,
      message: "请输入您的新密码",
      trigger: "blur"
    },
    {
      min: 6,
      max: 25,
      message: "新密码应该在6到25位",
      trigger: "blur"
    }
  ],

  nickName: [
    {
      required: true,
      message: "请输入您的昵称",
      trigger: "blur"
    },
    {
      min: 6,
      max: 25,
      message: "昵称应该在6到25位",
      trigger: "blur"
    }
  ]
}

export { updateUserInfoRules }
